package edu.sctu.practice.class02.liqing.assignment03.assignment03_03;

/**
 * Created by 123456 on 2015/10/22.
 */
public class Name implements Cloneable{
    private String firstName;
    private String middleName;
    private String lastname;
public Name(String firstName,String middleName,String lastname){
  this.firstName=firstName;
    this.middleName=middleName;
    this.lastname=lastname;
}
    public String getFullname(){
        String s=firstName+""+middleName+""+lastname;
        return s;
    }
    public void setFirstName(String s){
        firstName=s;
    }
    public void setMiddleName(String s){
       middleName=s;
    }
    public void setLastname(String s){
        lastname=s;
    }
    public Object clone()
    {
        Object  o=null;
        try
        {
            o=(Name)super.clone();
        }
        catch (CloneNotSupportedException ex)
        {
            return null;
        }
        return o;
    }
}
